<div ms-controller="company_point_list">
    <div class="location_box">
        <div class="return_title">
            <a class="return_button" ms-on-click="history"><img src="../img/icon_return.png"/></a>
            <a ms-on-click="load('home_cloud.html')">首页</a>
            <span>&gt;</span>
            <span>系统管理</span>
            <span>&gt;</span>
            <span>站点列表</span>
        </div>
        <div class="button_box">
            <a class="button_add" ms-if="sessionStorage.userPower_companyPointAdd==1" ms-on-click="goSave">添加</a>
        </div>
    </div>
    
    <div class="clear">
		<div class="button_box"><a class="button_save search_item_button" ms-on-click="page">查询</a></div>
		<div class="condition_box clear">
			<div class="condition_item">
				<label>所属公司</label>
                <select ms-duplex="companyId">
                    <option></option>
                    <option ms-repeat="companyList" ms-attr-value="el.id">{{el.name}}</option>
                </select>
			</div>

		</div>
	</div>
	
   <div class="table_content">
        <table ms-controller="paging">
            <thead>
            <tr>
                <td width="5%">序号</td>
                <td width="8%">站点ID</td>
                <td width="10%">站点编号</td>
                <td width="15%">站点全称</td>
                <td width="8%">站点简称</td>
                <td width="10%">所属公司</td>
                <td width="15%">站点地址</td>
                <td width="15%">创建时间</td>
                <td width="14%">操作</td>
            </tr>
            </thead>
            <tbody>
            <tr ms-repeat="company_point_list">
                <td>{{pageSize*(pageNum-1)+$index+1}}</td>
                <td>{{el.id}}</td>
                <td>{{el.code}}</td>
                <td>{{el.name}}</td>
                <td>{{el.shortName}}</td>
                <td>{{el.companyName}}</td>
                <td>{{el.address}}</td>
                <td>{{el.createTime| date("yyyy-MM-dd HH:mm")}}</td>
                <td>
                    <a ms-on-click="goUpdate(el.id)" ms-if="sessionStorage.userPower_companyPointUpdate==1" class="green"><img src="../img/icon_update.png"/>修改</a>
                    <a ms-on-click="removeItem(el.id)" ms-if="sessionStorage.userPower_companyPointDelete==1" class="yellow" style="margin-left: 15px;"><img src="../img/icon_delete.png" />删除</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ms-include-src="table_footer"></div>
</div>